Fix ordering of default replacement-alist
authorJustin Burkett <justin@burkett.cc>
Thu, 7 Dec 2017 22:30:49 +0000 (17:30 -0500)
committerJustin Burkett <justin@burkett.cc>
Thu, 7 Dec 2017 22:31:41 +0000 (17:31 -0500)
When which-key-allow-multiple-replacements is nil, this order is required to get
the intended behavior with left and right.

Ref #181

which-key.el

index 79f7affd852559cf2318a8ad46a5802e400ae915..e0c03561cfc72f7af1505fbcca2c57d181729cb2 100644 (file)
@@ -152,10 +152,10 @@ remapped given the currently active keymaps."
         `(((nil . "Prefix Command") . (nil . "prefix"))
           ((nil . "\\`\\?\\?\\'") . (nil . "lambda"))
           ((nil . "which-key-show-next-page-no-cycle") . (nil . "wk next pg"))
-          (("<\\([[:alnum:]-]+\\)>") . ("\\1"))
           ,@(unless which-key-dont-use-unicode
-              '((("left") . ("←"))
-                (("right") . ("→"))))))
+              '((("<left>") . ("←"))
+                (("<right>") . ("→"))))
+          (("<\\([[:alnum:]-]+\\)>") . ("\\1"))))
   "Association list to determine how to manipulate descriptions
 of key bindings in the which-key popup. Each element of the list
 is a nested cons cell with the format